package _cn.com.jsr.translation.termidentifier.tool;
import java.io.File;
import java.io.FileInputStream;
import java.io.FilenameFilter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.List;

import cn.com.jsr.translation.termidentifier.Dictionary;
import cn.com.jsr.translation.termidentifier.identifier.Quote;
import cn.com.jsr.translation.termidentifier.identifier.Translate;
import cn.com.jsr.translation.termidentifier.tool.BatchReplacer;
import framework.InputSet;
import junit.framework.TestCase;

public class _BatchReplacer extends TestCase{
	public void test() throws IOException{
		Translate translate = new Translate();
		Dictionary global = Dictionary.load(new FileInputStream(new File("E:\\wmj\\extra\\translation\\javaeetranslation\\字典\\01 全局字典\\01 字典定义.properties")));
		Dictionary partial = Dictionary.load(new FileInputStream(new File("E:\\wmj\\extra\\translation\\javaeetranslation\\翻译\\001 jsr356\\tar\\01 术语抽取\\01 术语词典.properties")));
		partial.merge(global);
		translate.setDictionary(partial);
		
		BatchReplacer.replace(translate, new File("E:\\wmj\\extra\\translation\\javaeetranslation\\翻译\\001 jsr356\\tar\\03 原文翻译"));
	}
}
